package com.siwei.mes.entity.dto;

import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;

/**
 * @Description: 登录返回信息
 * @Version: 1.0
 * @author: chenmaolin
 * @date: 2023/11/25 19:01
 */
@Data
@Accessors(chain = true)
public class LoginDto {
    @ApiModelProperty(value = "登录用户id")
    private Long userId;

    @ApiModelProperty(value = "用户名称", name = "userName")
    private String userName;

    @Column(name = "user_phone")
    @ApiModelProperty(value = "用户手机号", name = "userPhone")
    private String userPhone;


    @ApiModelProperty(value = "职位", name = "job")
    private String job;

    @ApiModelProperty(value = "头像", name = "avatar")
    private String avatar;

    @Column(name = "role_id")
    @ApiModelProperty(value = "角色id")
    private Long roleId;

    @Column(name = "role_name")
    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "token名称")
    private String tokenName;

    @ApiModelProperty(value = "token值")
    private String tokenValue;

    @ApiModelProperty(value = "对应试验项目权限")
    private JSONArray testProjectJson;
}
